home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-11-11 | 4.3 KB | 210 lines | [TEXT/MPS ] |
- ;
- ; File: StandardFile.a
- ;
- ; Copyright: © 1984-1994 by Apple Computer, Inc.
- ; All rights reserved.
- ;
- ; Version: Universal Interfaces 2.0a3 ETO #16, MPW prerelease. Friday, November 11, 1994.
- ;
- ; Bugs?: If you find a problem with this file, send the file and version
- ; information (from above) and the problem description to:
- ;
- ; Internet: apple.bugs@applelink.apple.com
- ; AppleLink: APPLE.BUGS
- ;
- ;
-
- IF &TYPE('__STANDARDFILE__') = 'UNDEFINED' THEN
- __STANDARDFILE__ SET 1
-
-
- IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
- include 'Types.a'
- ENDIF
- ; include 'ConditionalMacros.a' ;
-
- IF &TYPE('__DIALOGS__') = 'UNDEFINED' THEN
- include 'Dialogs.a'
- ENDIF
- ; include 'Errors.a' ;
- ; include 'Memory.a' ;
- ; include 'MixedMode.a' ;
- ; include 'Windows.a' ;
- ; include 'Quickdraw.a' ;
- ; include 'QuickdrawText.a' ;
- ; include 'Events.a' ;
- ; include 'OSUtils.a' ;
- ; include 'Controls.a' ;
- ; include 'Menus.a' ;
- ; include 'TextEdit.a' ;
-
- IF &TYPE('__FILES__') = 'UNDEFINED' THEN
- include 'Files.a'
- ENDIF
-
- ; resource IDs and item offsets of pre-7.0 dialogs
- putDlgID EQU -3999
- putSave EQU 1
- putCancel EQU 2
- putEject EQU 5
- putDrive EQU 6
- putName EQU 7
- getDlgID EQU -4000
- getOpen EQU 1
- getCancel EQU 3
- getEject EQU 5
- getDrive EQU 6
- getNmList EQU 7
- getScroll EQU 8
- ; resource IDs and item offsets of 7.0 dialogs
- sfPutDialogID EQU -6043
- sfGetDialogID EQU -6042
- sfItemOpenButton EQU 1
- sfItemCancelButton EQU 2
- sfItemBalloonHelp EQU 3
- sfItemVolumeUser EQU 4
- sfItemEjectButton EQU 5
-
- sfItemDesktopButton EQU 6
- sfItemFileListUser EQU 7
- sfItemPopUpMenuUser EQU 8
- sfItemDividerLinePict EQU 9
- sfItemFileNameTextEdit EQU 10
- sfItemPromptStaticText EQU 11
- sfItemNewFolderUser EQU 12
- ; pseudo-item hits for use in DlgHook
- sfHookFirstCall EQU -1
- sfHookCharOffset EQU $1000
- sfHookNullEvent EQU 100
- sfHookRebuildList EQU 101
- sfHookFolderPopUp EQU 102
- sfHookOpenFolder EQU 103
- ; the following are only in system 7.0+
- sfHookOpenAlias EQU 104
- sfHookGoToDesktop EQU 105
- sfHookGoToAliasTarget EQU 106
- sfHookGoToParent EQU 107
- sfHookGoToNextDrive EQU 108
- sfHookGoToPrevDrive EQU 109
- sfHookChangeSelection EQU 110
-
- sfHookSetActiveOffset EQU 200
- sfHookLastCall EQU -2
-
- ; the refcon field of the dialog record during a
- ; modalfilter or dialoghook contains one of the following
- sfMainDialogRefCon EQU 'stdf'
- sfNewFolderDialogRefCon EQU 'nfdr'
- sfReplaceDialogRefCon EQU 'rplc'
- sfStatWarnDialogRefCon EQU 'stat'
- sfLockWarnDialogRefCon EQU 'lock'
- sfErrorDialogRefCon EQU 'err '
-
- SFReply RECORD 0
- good ds.b 1
- copy ds.b 1
- fType ds.l 1
- vRefNum ds.w 1
- version ds.w 1
- fName ds.l 16
- sizeof EQU 74
- ENDR
-
- StandardFileReply RECORD 0
- sfGood ds.b 1
- sfReplacing ds.b 1
- sfType ds.l 1
- sfFile ds FSSpec
- sfScript ds.w 1
- sfFlags ds.w 1
- sfIsFolder ds.b 1
- sfIsVolume ds.b 1
- sfReserved1 ds.l 1
- sfReserved2 ds.w 1
- sizeof EQU 88
- ENDR
-
- ; for CustomXXXFile, ActivationOrderListPtr parameter is a pointer to an array of item numbers
- ; the following also include an extra parameter of "your data pointer"
- IF GENERATING68K THEN
- Macro
- _SFPutFile
- move.w #$0001,-(sp)
- dc.w $A9EA
- EndM
- ELSE
- IMPORT SFPutFile
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _SFGetFile
- move.w #$0002,-(sp)
- dc.w $A9EA
- EndM
- ELSE
- IMPORT SFGetFile
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _SFPPutFile
- move.w #$0003,-(sp)
- dc.w $A9EA
- EndM
- ELSE
- IMPORT SFPPutFile
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _SFPGetFile
- move.w #$0004,-(sp)
- dc.w $A9EA
- EndM
- ELSE
- IMPORT SFPGetFile
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _StandardPutFile
- move.w #$0005,-(sp)
- dc.w $A9EA
- EndM
- ELSE
- IMPORT StandardPutFile
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _StandardGetFile
- move.w #$0006,-(sp)
- dc.w $A9EA
- EndM
- ELSE
- IMPORT StandardGetFile
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _CustomPutFile
- move.w #$0007,-(sp)
- dc.w $A9EA
- EndM
- ELSE
- IMPORT CustomPutFile
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _CustomGetFile
- move.w #$0008,-(sp)
- dc.w $A9EA
- EndM
- ELSE
- IMPORT CustomGetFile
- ENDIF
-
- ENDIF ; __STANDARDFILE__
-